package top.ajunnihao.core.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 景点实体类
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SiteScenic对象", description = "")
public class SiteScenic implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "景点 ID")
    @TableId(value = "site_id", type = IdType.AUTO)
    private Long siteId;

    @ApiModelProperty(value = "景点名称")
    private String siteName;

    @ApiModelProperty(value = "景点介绍")
    private String siteInfo;

    @ApiModelProperty(value = "景点图片")
    private String siteImg;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Boolean deleted;

    @ApiModelProperty(value = "创建日期")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "更新日期")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtUpdate;

}
